import type { AppRouteModule } from '/@/router/types';

import { LAYOUT } from '/@/router/constant';

const project: AppRouteModule = {
  id: '12',
  path: '/sys',
  name: 'sys',
  component: LAYOUT,
  redirect: '/sys/convention',
  meta: {
    orderNo: 12,
    icon: 'tabler:device-desktop-analytics',
    title: '系统运维',
  },
  children: [
    {
      id: '12-1',
      path: 'convention',
      name: 'SystemConvention',
      component: () => import('/@/views/project/system/convention.vue'),
      meta: {
        title: '基础配置',
      },
    },
    {
      id: '12-2',
      path: 'devOps',
      name: 'SysDevOps',
      component: () => import('/@/views/project/system/devOps.vue'),
      meta: {
        title: '授权',
      },
    },
    {
      id: '12-3',
      path: 'engineeringPage',
      name: 'EngineeringIndexPage',
      component: () => import('/@/views/project/engineering/index.vue'),
      meta: {
        title: '工程管理',
      },
    },
    {
      id: '12-4',
      path: 'resource',
      name: 'Resource',
      component: LAYOUT,
      redirect: '',
      meta: {
        title: '连接资源',
      },
      children: [
        {
          id: '12-4-1',
          path: 'database',
          name: 'ResourceDatabase',
          component: () => import('/@/views/project/database/index.vue'),
          meta: {
            title: '数据库连接',
          },
        },
        {
          id: '12-4-2',
          path: 'mes',
          name: 'ResourceMes',
          component: () => import('/@/views/project/mes/index.vue'),
          meta: {
            title: 'MES服务配置',
          },
        },
        {
          id: '12-4-3',
          path: 'mesDocking',
          name: 'MesDockingPage',
          component: () => import('/@/views/project/mesDocking/index.vue'),
          meta: {
            title: 'MES数据推送',
          },
        },
        {
          id: '12-4-4',
          path: 'butlerDocking',
          name: 'ButlerDockingPage',
          component: () => import('/@/views/project/butlerDocking/index.vue'),
          meta: {
            title: '管家数据推送',
          },
        },
      ],
    },
  ],
};

export default project;
